home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PBoolQuery.h next >
C/C++ Source or Header  |  1996-10-10  |  2KB  |  66 lines

  1. /*
  2.  *--- PBoolQuery.h ---------------------------------------------
  3.  * Copyright (c) 1995 Adobe Systems, Inc.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:06 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *--------------------------------------------------------------
  8.  */
  9. #ifndef __PBoolQuery__
  10. #define __PBoolQuery__
  11.  
  12. #include "PQuery.h"
  13.  
  14. template <ePMQuery QUERY>
  15. class PBoolQuery
  16. {
  17.  
  18. public:
  19.  
  20.     PBoolQuery() { PQuery query(QUERY, itsBool); }
  21.     virtual ~PBoolQuery() {}
  22.  
  23.     operator const PMBool() const { return itsBool; }
  24.  
  25. protected:
  26.  
  27.     PMBool itsBool;
  28. };
  29.  
  30. typedef PBoolQuery<pm_getautoflow>                PGetAutoflow;
  31. typedef PBoolQuery<pm_getchangewindow>            PGetChangeWindow;
  32. // Rememeber the following two lines???? :-)
  33. //typedef PBoolQuery<pm_getcolorpanel>            PGetColorPanel;
  34. typedef PBoolQuery<pm_getcolorpalette>            PGetColorPalette;
  35. typedef PBoolQuery<pm_getcontrolpalette>        PGetControlPalette;
  36. typedef PBoolQuery<pm_getdisplaynonprinting>    PGetDisplayNonPrinting;
  37. typedef PBoolQuery<pm_getdisplayspecial>        PGetDisplaySpecial;
  38. typedef PBoolQuery<pm_getdisplaystylenames>        PGetDisplayStyleNames;
  39. typedef PBoolQuery<pm_getfindwindow>            PGetFindWindow;
  40. typedef PBoolQuery<pm_getguides>                PGetGuides;
  41. typedef PBoolQuery<pm_getlockguides>            PGetLockGuides;
  42. typedef PBoolQuery<pm_getmasteritems>            PGetMasterItems;
  43. // Rememeber the following two lines???? :-)
  44. //typedef PBoolQuery<pm_getmasterpagepanel>        PGetMasterPagePanel;
  45. typedef PBoolQuery<pm_getmasterpagepalette>        PGetMasterPagePalette;
  46. typedef PBoolQuery<pm_getnonprinting>            PGetNonPrinting;
  47. typedef PBoolQuery<pm_getprintepspreviews>        PGetPrintEPSPreviews;
  48. typedef PBoolQuery<pm_getprintps>                PGetPrintPS;
  49. typedef PBoolQuery<pm_getprintscreenrgbs>        PGetPrintScreenRGBs;
  50. typedef PBoolQuery<pm_getrulers>                PGetRulers;
  51. typedef PBoolQuery<pm_getscrollbars>            PGetScrollbars;
  52. typedef PBoolQuery<pm_getshowerroralert>        PGetShowErrorAlert;
  53. typedef PBoolQuery<pm_getsnaptoguides>            PGetSnapToGuides;
  54. typedef PBoolQuery<pm_getsnaptorulers>            PGetSnapToRulers;
  55. typedef PBoolQuery<pm_getspellwindow>            PGetSpellWindow;
  56. // Rememeber the following two lines???? :-)
  57. //typedef PBoolQuery<pm_getstylepanel>            PGetStylePanel;
  58. typedef PBoolQuery<pm_getstylepalette>            PGetStylePalette;
  59. typedef PBoolQuery<pm_getsuppressautosave>        PGetSuppressAutosave;
  60. typedef PBoolQuery<pm_gettoolbox>                PGetToolbox;
  61. typedef PBoolQuery<pm_getzerolock>                PGetZeroLock;
  62.  
  63. #endif
  64.  
  65. // end of PBoolQuery.h
  66.